﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using AbstractFramework.LogicControl;
using AbstractFramework.Constant;

namespace WpfElevator.ElevatorPart
{
    class ButtonFactory : IButtonFactory
    {
        public IButton createButton(ButtonType buttonType)
        {
            if (buttonType == ButtonType.outsideButton)
            {
                OutsideButton outsideButton = new OutsideButton(-1,-1);
                return outsideButton;
            }
            else if (buttonType == ButtonType.insideButton)
            {
                InsideButton insideButton = new InsideButton(-1, -1);
                return insideButton;
            }
            else
            {
                FireButton fireButton = new FireButton();
                return fireButton;
            }
        }
    }
}
